package cn.yougou.dto;

import java.io.Serializable;

/**
 * @author: DELL
 * @date: 2020/12/6 10:12
 * @description:
 */
public class Query implements Serializable {

    private Integer page; //页数
    private Integer limit;//分页展示多少信息
    private Integer infoCount;// 总页数
    private Integer deleted;//删除逻辑

    /**
     * 会员管理
     */
    private Integer userId;// 条件查询所使用的 查询id
    private String username;// 条件查询所使用的 查询id
    private String mobile;// 条件查询所使用的 查询id
    private String sort;// 定义分类方式
    private String order;//定义排序方式

    /**
     * 商品列表
     */
    private Integer commId; //商品id
    private Integer goodsSn;//商品编号
    private String commodityID; //商品名称

    /**
     * 优惠卷
     * */
    private String couponTitile;
    private String getRules;
    private Integer state;


    /**
     * 用户评论
     */
    private Integer commentUserId; //用户Id
    private Integer commentCommId; //商品Id


    /**
     * 收货地址
     */
    private Integer id;
    private String name;

    /**
     * 广告标题
     */
    private String title;




    public Query() {
    }

    public Query(Integer page, Integer limit, Integer userId, String username, String mobile, String sort, String order, Integer infoCount) {
        this.page = page;
        this.limit = limit;
        this.userId = userId;
        this.username = username;
        this.mobile = mobile;
        this.sort = sort;
        this.order = order;
        this.infoCount = infoCount;
    }

    public Query(Integer page, Integer limit, String couponTitile, String getRules, Integer state) {
        this.page = page;
        this.limit = limit;
        this.couponTitile = couponTitile;
        this.getRules = getRules;
        this.state = state;
    }

    public Query(Integer page, Integer limit, String sort, String order, Integer id, String name) {
        this.page = page;
        this.limit = limit;
        this.sort = sort;
        this.order = order;
        this.id = id;
        this.name = name;
    }

    public Query(Integer page, Integer limit, Integer infoCount, Integer id, String name) {
        this.page = page;
        this.limit = limit;
        this.infoCount = infoCount;
        this.id = id;
        this.name = name;
    }

    /**
     * 广告标题
     */
    public Query(Integer page, Integer limit, Integer infoCount, String title) {
        this.page = page;
        this.limit = limit;
        this.infoCount = infoCount;
        this.title = title;
    }




    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCommentUserId() {
        return commentUserId;
    }

    public void setCommentUserId(Integer commentUserId) {
        this.commentUserId = commentUserId;
    }

    public Integer getCommentCommId() {
        return commentCommId;
    }

    public void setCommentCommId(Integer commentCommId) {
        this.commentCommId = commentCommId;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getGoodsSn() {
        return goodsSn;
    }

    public void setGoodsSn(Integer goodsSn) {
        this.goodsSn = goodsSn;
    }

    public Integer getCommId() {
        return commId;
    }

    public void setCommId(Integer commId) {
        this.commId = commId;
    }

    public String getCommodityID() {
        return commodityID;
    }

    public void setCommodityID(String commodityID) {
        this.commodityID = commodityID;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public Integer getInfoCount() {
        return infoCount;
    }

    public void setInfoCount(Integer infoCount) {
        this.infoCount = infoCount;
    }

    public String getCouponTitile() {
        return couponTitile;
    }

    public void setCouponTitile(String couponTitile) {
        this.couponTitile = couponTitile;
    }

    public String getGetRules() {
        return getRules;
    }

    public void setGetRules(String getRules) {
        this.getRules = getRules;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    @Override
    public String toString() {
        return "Query{" +
                "page=" + page +
                ", limit=" + limit +
                ", infoCount=" + infoCount +
                ", deleted=" + deleted +
                ", userId=" + userId +
                ", username='" + username + '\'' +
                ", mobile='" + mobile + '\'' +
                ", sort='" + sort + '\'' +
                ", order='" + order + '\'' +
                ", commId=" + commId +
                ", goodsSn=" + goodsSn +
                ", commodityID='" + commodityID + '\'' +
                ", couponTitile='" + couponTitile + '\'' +
                ", getRules='" + getRules + '\'' +
                ", state=" + state +
                ", commentUserId=" + commentUserId +
                ", commentCommId=" + commentCommId +
                ", id=" + id +
                ", name=" + name +
                '}';
    }
}
